package cn.xpg.service;

import java.util.List;

import cn.xpg.entity.Repertory;

public interface RepertoryService {
	// 新增库存
	public int addRepertory(Repertory repertory);

	// 删除库存
	public int deleteRepertory(int repertory_id);

	// 查询库存
	public List<Repertory> getRepertoryList(String product_name, int currentPageNo, int pageSize);

	// 查询库存行数
	public int getRepertoryCount(String product_name);

	// 获取库存id
	public Repertory getRepertoryId(int repertory_id);

	// 修改库存
	public int updateRepertory(Repertory repertory);

	// 根据店铺名查询库存
	public List<Repertory> getRepertoryListBySname(String store_name, int currentPageNo, int pageSize);
	
	// 根据店铺名查询库存行数
	public int getRepertoryCountBySname(String store_name);
}
